$(function(){

	var personAddForm = $('#personAdd');
	personAddForm.validate();
	personAddForm.on('submit',function(){
		try{
			if (personAddForm.valid()) {
				if ($('.checkbox-k input:checked').length > 4) {
					$.alert('住户分类最多不超过4个！');
					return false;
				}
				personAddForm.submitForm();
				return false;
			}
		}catch(e){
			console.log(e);
		}
	})
})